$(function(){
  var fid=0,id =0 ,mid=0,mmid=0,page=1;
  var sname,sid,sposter;
    function post(){
        $.post("../home/singer", "fid="+fid+"&id="+id+"&mid="+mid+"&mmid="+mmid+"&page="+page, function (data) {
            var singers = JSON.parse(data);
        $.each(singers,function (i,j) {
            sname = j.singerName;
            sid = j.singerId;
            sposter = j.poster;
            $(".text-ellipsis").eq(i).html(sname);
            $(".tu").eq(i).attr("src",sposter);
3
        })
        });
    }
    post();
    $(".list-group-item").click(function () {
        fid = $(this).attr("fid");
    post()
        });
    $(".singer_area").click(function () {
        id = $(this).attr("id");
        post();
    })
    $(".singer_sex").click(function () {
        mid = $(this).attr("mid");
        post();
    })
    $(".singer_genre").click(function () {
        mmid = $(this).attr("mmid");
        post();
    })
    })
